package server.core;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;

public class LogUser implements Runnable {
	 BufferedReader is = null;
	PrintStream os = null;
	Socket clientSocket = null;

	public LogUser(Socket clientSocket) {
		this.clientSocket = clientSocket;
	}

	@Override
	public void run() {
		String line;
		try {
			is = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
			os = new PrintStream(clientSocket.getOutputStream());
			while(true){
				line = is.readLine();
				System.out.println(line);
				
			}
		} catch (IOException e) {
		}
	}
}
